package org.toolbook.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 字符串工具类
 * @author meigang
 * @date 2015-06-23 22:51
 *
 */
public class StringUtils {
	/**
	 * 得到日期字符串
	 * @param date
	 * @param pattern
	 * @return
	 */
	public static String getDateString(Date date,String pattern){
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		return sdf.format(date);
	}
}
